package com.audi.utils;

public class Constants {

	public static int PLACE_UNCATEGORIZED_ID = 1;

	public enum DEVICE_TYPE {
		// ON OFF DEVICES
		ONOFFPLUG, // 0
		ONOFFSWITCH, // 1
		ONOFFLIGHTING, // 2
		ONOFFDOORLOCK, // 3
		// WARNING SENSORS
		WARNINGCO, // 4
		WARNINGCO2, // 5
		WARNINGGAS, // 6
		WARNINGFIRE, // 7
		WARNINGSMOKE, // 8
		WARNINGGLASS, // 9
		WARNINGALARM, // 10
		// STATUS SENSORS

		STATUSTEMPERATURE, // 11
		STATUSHUMIDITY, // 12
		STATUSDOOR, // 13
		STATUSWINDOW, // 14
		STATUSMOTION, // 15
		TIME,//16
		MEMSTATUSHOME,//17
		TRIGGER_SCENE,//18
	}

	public enum DEVICE_GROUP_TYPE {
		ONOFF, WARNING, STATUS
	}

	public enum PLACE_CAPABILITY {
		NONE, PRIVATE, PUBLIC;
	}

	public enum SCENE_COLOR_TYPE {
		WHITE, RED, ORANGE, YELLOW, GREY, BLUE, SBLUE, GREEN
	}

	public static String IMAGE_DEVICE_dir = "imgdevice";

	public enum HISTORY_BOX_WIFI_TYPE {
		CONNECTION
	}

	public enum HISTORY_USER_ACTION_TYPE {
		JOIN, REMOVE, SIGNOUT
	}

	public enum HISTORY_USER_HOME_TYPE {
		COME_HOME, LEAVE_HOME
	}

	public enum HISTORY_DEVICE_TYPE {
		ADD, REMOVE
	}

	public enum HISTORY_PLACE_TYPE {
		ADD, REMOVE
	}

	public enum HISTORY_SCENE_TYPE {
		ADD, REMOVE
	}

	public enum HISTORY_SMART_TRIGGER_TYPE {
		ADD, REMOVE
	}

	public enum HISTORY_NAME_CAPABILITY_OF_PLACE_TYPE {
		CHANGE_NAME, CHANGE_CAPABILITY
	}

	public enum ST_WHEN {
		ON, OFF, UNLOCKED, LOCKED, WARNING, TEM_LV1, TEM_LV2, TEM_LV3, HUM_LV1, HUM_LV2, HUM_LV3, OPENED, CLOSED, NEW_MOTION, EVERY_DAY, EVERY_HOUR, EVERY_DAY_OF_WEEK, COME, LEAVE
	}

	public enum ST_TRIGGER {
		TURN_ON, TURN_OFF, SET_OFF, TRIGGER
	}

	public static String DATA_NAME_PLACE = "namePlace";
	public static String DATA_ID_PLACE = "idplace";
	public static String DATA_ID_SCENE = "idScene";
	public static String DATA_NAME_SCENE = "nameScene";
	public static String DATA_LIST_DEVICE = "data";

	// public static Object ONOFF;

	// Namnt16 smart trigger
	public enum DEVICE_TYPE2 {
		// ON OFF DEVICES

		ONOFF_PLUG(1), // 0
		ONOFF_SWITCH(1), // 1
		ONOFF_LIGHTING(1), // 2
		ONOFF_DOORLOCK(1), // 3
		// WARNING SENSORS
		WARNING_CO(1), // 4
		WARNING_CO2(1), // 5
		WARNING_GAS(1), // 6
		WARNING_FIRE(1), // 7
		WARNING_SMOKE(1), // 8
		WARNING_GLASS(1), // 9
		WARNING_ALARM(1), // 10
		// STATUS SENSORS
		STATUS_TEMPERATURE(1), // 11
		STATUS_HUMIDITY(1), // 12
		STATUS_DOOR(1), // 13
		STATUS_WINDOW(1), // 14
		STATUS_MOTION(1);// 15;
		private int group;

		private DEVICE_TYPE2(int gr) {
			group = gr;

		}

		public int getGroup() {
			return group;
		}

	}

	public enum ONOFF {
		OFF("OFF", 0), ON("ON", 1);

		private String stringValue;
		private int intValue;

		private ONOFF(String toString, int value) {
			stringValue = toString;
			intValue = value;
		}

		@Override
		public String toString() {
			return stringValue;
		}
	}

	public enum ONOFF_DOOR {
		DOOR_CLOCK("locked", 0), DOOR_UNCLOCK("unlocked", 1);

		private String stringValue;
		private int intValue;

		private ONOFF_DOOR(String toString, int value) {
			stringValue = toString;
			intValue = value;
		}

		@Override
		public String toString() {
			return stringValue;
		}
	}

	public enum TEM_WARNING {
		LESS("Was less than 18/60 degrees", 0), BETWEEN(
				"Was between 18/60 & 25/70 degrees", 1), EXCEEDED(
				"Exceeded 25/80 degrees", 2);
		private String stringValue;
		private int intValue;

		private TEM_WARNING(String toString, int value) {
			stringValue = toString;
			intValue = value;
		}

		@Override
		public String toString() {
			return stringValue;
		}
	}

	public enum HUM_WARNING {
		LESS("Was less than 40%", 0), BETWEEN("Was between 40% and 70%", 1), EXCEEDED(
				"Exceeded 70%", 2);
		private String stringValue;
		private int intValue;

		private HUM_WARNING(String toString, int value) {
			stringValue = toString;
			intValue = value;
		}

		@Override
		public String toString() {
			return stringValue;
		}
	}

	public enum SEN_WARNING {
		DETECT("Detected WARNING", 0);
		private String stringValue;
		@SuppressWarnings("unused")
		private int intValue;

		private SEN_WARNING(String toString, int value) {
			stringValue = toString;
			intValue = value;
		}

		@Override
		public String toString() {
			return stringValue;
		}
	}

	public enum CONTROL_ON_OFF {
		OFF, ON, NONE
	}
}
